const userModel = require('../models/user')

const userList = async (req, res) => {
  const result = await userModel.find()
  res.send({
    code: 200,
    data: result,
  })
}

module.exports = {
  userList,
}
